import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: ['pages/logs/main', '^pages/index/main', 'pages/trades/main', 'pages/profile/main'],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: '美容美发',
      navigationBarTextStyle: 'black'
    },
    tabBar: {
      selectedColor: '#6E4117',
      list: [
        {
          pagePath: "pages/index/main",
          text: "首页",
          iconPath: "static/image/tab/index.png",
          selectedIconPath: "static/image/tab/index-selected.png"
        },
        {
          pagePath: "pages/trades/main",
          text: "来一单",
          iconPath: "static/image/tab/trades.png",
          selectedIconPath: "static/image/tab/trades-selected.png"
        },
        {
          pagePath: "pages/profile/main",
          text: "我的",
          iconPath: "static/image/tab/profile.png",
          selectedIconPath: "static/image/tab/profile-selected.png"
        },
      ]
    }
  }
}
